﻿@model SchoolCommunicationSystem.Models.TeacherAndClassModels
@{
    ViewBag.Title = "Phân bổ giáo viên";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
<div id="page-heading">
    <h1>Quản lý giáo viên</h1>
</div>
<div class="container">
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h4>Phân bổ giáo viên</h4>
                </div>
                <div class="panel-body">
                    @using (Html.BeginForm("AssignTeacher", "Teacher", FormMethod.Post, new { @class = "form-horizontal" }))
                    {
                        @Html.ValidationSummary(true)

@*  @Html.HiddenFor(model => model.Teachers.teacherID)
            @Html.HiddenFor(model => model.Teachers.gender)
            @Html.HiddenFor(model => model.Teachers.address)
            @Html.HiddenFor(model => model.Teachers.deactived)
            @Html.HiddenFor(model => model.Teachers.Classes)
            @Html.HiddenFor(model => model.Teachers.userID)   *@
           
                        <div class="form-group">
                            @Html.Label("Tên giáo viên", new { @class = "col-sm-3 control-label" })
                            <div class="col-sm-6">
                                @Html.DropDownListFor(model => model._teacherID, Model.TeacherSelectList, "[Hãy chọn giáo viên]", new { @class = "form-control" })
                            </div>
                            <div class="col-sm-3">
                                @Html.ValidationMessageFor(model => model._teacherID)
                            </div>
                        </div>
                        <div class="form-group">
                            @Html.Label("Lớp", new { @class = "col-sm-3 control-label" })
                            <div class="col-sm-6">
                                @Html.DropDownListFor(model => model._classID, Model.ClassSelectList, "[Hãy chọn lớp học]", new { @class = "form-control" })
                            </div>
                            <div class="col-sm-3">
                                @Html.ValidationMessageFor(model => model._classID)
                            </div>
                        </div>
                        <div class="form-group">
                            @Html.Label("Môn học", new { @class = "col-sm-3 control-label" })
                            <div class="col-sm-6">
                                @Html.DropDownListFor(model => model._subjectID, Model.SubjectSelectList, "[Hãy chọn môn học]", new { @class = "form-control" })
                            </div>
                            <div class="col-sm-3">
                                @Html.ValidationMessageFor(model => model._subjectID)
                            </div>
                        </div>
                        <div class="form-group">
                            @Html.Label("Năm học", new { @class = "col-sm-3 control-label" })
                            <div class="col-sm-6">
                                @Html.DropDownListFor(model => model._schoolYearID, Model.SchoolYearSelectList, "[Hãy chọn năm học]", new { @class = "form-control" })
                            </div>
                            <div class="col-sm-3">
                                @Html.ValidationMessageFor(model => model._schoolYearID)
                            </div>
                        </div>
                        <br />
                        <div class="row">
                            <div class="col-sm-6 col-sm-offset-3">
                                <div class="btn-toolbar">
                                    <button class="btn-primary btn" type="submit">Phân bổ</button>
                                </div>
                            </div>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>
</div>

